Skip to content

[Feature] Add Calendar minimum date support#388

Merged
cirdes merged 1 commit into
mainfrom
da/issue-351-calendar-min-date
May 12, 2026
Merged

[Feature] Add Calendar minimum date support#388
cirdes merged 1 commit into
mainfrom
da/issue-351-calendar-min-date

Conversation

@djalmaaraujo
Copy link
Copy Markdown
Contributor

Summary

  • Add a Calendar min_date API and emit the value to the Stimulus controller
  • Render dates before min_date with a disabled template and ignore disabled-day selection in JS
  • Normalize date parsing to avoid YYYY-MM-DD timezone drift
  • Add docs examples and component coverage

Closes #351

Testing

  • docker run --rm -v ruby_ui_bundle:/usr/local/bundle -v /Users/djalmaaraujo/dev/linkana/ruby_ui-issue-351:/workspace -w /workspace/gem ruby:3.4.7 bash -lc 'bundle install && bundle exec rake test TEST=test/ruby_ui/calendar_test.rb'
  • docker run --rm -v ruby_ui_bundle:/usr/local/bundle -v /Users/djalmaaraujo/dev/linkana/ruby_ui-issue-351:/workspace -w /workspace/gem ruby:3.4.7 bash -lc 'bundle install && bundle exec standardrb lib/ruby_ui/calendar/calendar.rb lib/ruby_ui/calendar/calendar_days.rb lib/ruby_ui/calendar/calendar_docs.rb test/ruby_ui/calendar_test.rb'
  • node --check gem/lib/ruby_ui/calendar/calendar_controller.js
  • node --check docs/app/javascript/controllers/ruby_ui/calendar_controller.js

@djalmaaraujo djalmaaraujo requested a review from cirdes as a code owner May 7, 2026 13:31
Copy link
Copy Markdown
Collaborator

@cirdes cirdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@cirdes cirdes merged commit d737706 into main May 12, 2026
4 checks passed
@cirdes cirdes deleted the da/issue-351-calendar-min-date branch May 12, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support minimum date in Calendar

2 participants